package com.hc.app.cursor.controller;


import com.hc.app.cursor.domain.entity.MyTable;
import com.hc.app.cursor.service.impl.MyTableServiceImpl;
import com.hc.cursorutils.CursorPageBaseReq;
import com.hc.cursorutils.CursorPageBaseResp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hc
 * @since 2024-12-05
 */
@RestController
@RequestMapping("/cursor")
public class MyTableController {

    @Autowired
    private MyTableServiceImpl tableService;
    @RequestMapping("/test")
    public CursorPageBaseResp<MyTable> testCursor(@RequestBody @Valid CursorPageBaseReq request){
        return tableService.getPage(request);
    }
}

